home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 001-025 / disk_006 / compress / uncompressd < prev    next >
Text File  |  1992-05-06  |  290b  |  17 lines

  1. OPTIONS=
  2. FILES=
  3. for ARG
  4. do
  5.     case "$ARG" in
  6.     -*)    OPTIONS="$OPTIONS $ARG";;
  7.     *)    FILES="$FILES $ARG";;
  8.     esac
  9. done
  10. if test -z "$FILES"; then
  11.     FILES="."
  12. fi
  13. set $FILES
  14. find $@ -type f -links 1 -exec test -r {} -a -s {} \; \
  15. -exec expr {} : '.*\.Z' \; \
  16. -exec uncompress $OPTIONS {} \; >/dev/null
  17.